package cs236369.hw5;

import java.util.Arrays;

import ws.reg.*;

public class Main {
	
	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
		RegistrationService service = new RegistrationServiceProxy(
				"http://localhost:9090/WSRegisteryStub/services/RegistrationServiceStub?wsdl");
		String response = service.addEndpoint("http://84.108.165.180:8080/app036933489/services/SearchWS?wsdl");
		System.out.println(response);
		response = service
				.addEndpoint("http://84.108.165.180:8080/app036933489/services/SearchWSKeywordsStub?wsdl");
		System.out.println(response);
		String[] responses = service.getRegisteredEndpoints();
		System.out.println(Arrays.toString(responses));
	}
}
